.cart-index {
  background-color: #f5f5f5;
  .li-wrap {
    background: #fff;
    position: relative;
    .li-store-info {
      padding-right: 24px;
      color: #666;
      font-size: 26px;
      padding-bottom: 24px;
      text-align: right;
    }
    &:not(:last-child) {
      &::after {
        position: absolute;
        bottom: 0;
        left: 24px;
        content: "";
        width: calc(100% - 24px);
        height: 2px;
        background-color: #e5e5e5;
      }
    }
  }
  .check {
    border: 4px solid #f5f5f5;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;

    &.act {
      background-color: #12b3ff;
      border-color: #12b3ff;
    }
  }

  &.fix-top {
    .cart-hd {
      .cart-title {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
      }
    }

    .cart-bd {
      padding-top: 80px;
    }
  }

  .cart-bd-cont {
    width: 100%;
    //   height: calc(100vh - 112px - 280px);
    height: calc(100vh - 112px);
  }

  .cart-hd {
    .cartbar-wrap {
      position: relative;
      width: 100%;
      height: 180px;

      .bar-msg {
        position: relative;
        z-index: 1;
        padding-left: 68px;

        .name {
          font-size: 48px;
          color: #fff;
          padding: 16px 0 4px;
        }

        .num {
          font-size: 24px;
          color: #fff;
        }
      }
    }

    .bar {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 180px;
    }

    .cart-title {
      position: relative;
      width: 100%;
      height: 80px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 28px;
      color: #333;
      padding: 0 24px;
      box-sizing: border-box;
      background-color: #fff;

      .cart-handle-btn {
        width: 104px;
        height: 52px;
        border-radius: 10px;
        border: 2px solid #12b3ff;
        box-sizing: border-box;
        color: #12b3ff;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;

        &.done {
          background-color: #12b3ff;
          color: #fff;
        }
      }
    }
  }

  .cart-bd {
    position: relative;

    .valid {
      padding-top: 20px;
    }

    .invalid {
      padding-top: 20px;

      .cart-item-li .good-img {
        margin-left: 62px;

        &::after {
          visibility: visible;
        }
      }

      .clear-all {
        font-size: 24px;
        color: #12b3ff;
      }
    }

    .cart-item-li {
      position: relative;
      display: flex;
      align-items: center;
      padding: 28px 24px;
      background-color: #fff;

      &:not(:last-child) {
        &::after {
          position: absolute;
          bottom: 0;
          left: 24px;
          content: "";
          width: calc(100% - 24px);
          height: 2px;
          background-color: #e5e5e5;
        }
      }

      .del {
        position: absolute;
        right: -164px;
        top: 0;
        width: 164px;
        height: 246px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ff3b30;

        &::after {
          content: "删除";
          font-size: 28px;
          color: #fff;
        }
      }

      .good-img {
        position: relative;
        width: 180px;
        height: 180px;
        display: block;
        margin: 0 24px 0 18px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;

        &::after {
          position: absolute;
          top: 0;
          left: 0;
          height: 100%;
          width: 100%;
          background: rgba(0, 0, 0, 0.8);
          content: "下架";
          display: flex;
          align-items: center;
          justify-content: center;
          color: #fff;
          font-size: 28px;
          visibility: hidden;
        }
      }

      .content {
        flex: 1;
        .content-sname {
          font-size: 26px;
          color: #666;
          margin: 2px 0;
        }
        .content-name {
          font-size: 26px;
          color: #333;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        .content-sku {
          margin-top: 10px;
          min-width: 184px;
          height: 44px;
          background: rgba(245, 245, 245, 1);
          border-radius: 10px;
          font-size: 24px;
          font-weight: 500;
          color: #333;
          display: inline-flex;
          align-items: center;
          justify-content: center;
        }

        .number-group {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-top: 12px;
          width: 100%;

          .price {
            color: #ff3b30;
            font-size: 42px;
            font-weight: bold;

            &::first-letter {
              font-size: 20px;
            }
          }
        }
        .text {
          color: #666;
          font-size: 22px;
          padding-top: 8px;
        }
      }
    }
  }

  .cart-ft {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 112px;
    background-color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #999999;
    font-size: 24px;
    padding: 0 24px;
    box-sizing: border-box;

    .check-all {
      display: block;
    }

    .count-price {
      display: flex;
      align-items: center;
      .cart-handle-btn {
        width: 104px;
        height: 52px;
        border-radius: 10px;
        border: 2px solid #12b3ff;
        box-sizing: border-box;
        color: #12b3ff;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;

        &.done {
          background-color: #12b3ff;
          color: #fff;
        }
      }
      .price {
        font-size: 42px;
        color: #ff3b30;
        margin-right: 24px;
        vertical-align: middle;
        font-weight: bold;

        &::first-letter {
          font-size: 20px;
        }
      }

      .handle-btn {
        width: 200px;
        height: 80px;
        background: rgba(18, 179, 255, 1);
        border-radius: 10px;
        font-size: 28px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;

        &.del {
          background-color: #ff3b30;
        }
      }
    }
  }
}
